//bool, Obj this

Unit me;

me = this.AsUnit();

if(!me.IsValid()) return false;

if(!me.IsAlive()) return false;

//pr(me.command);
if(me.command == "retreat_notai") return false;

if(me.command == "retreat_bld_notai") return false;

if(!me.EnemiesInSight()) return false;

return true;
//return false;